<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>管理员-添加课程</title>

	<script src="resources/js/public/jquery-3.3.1.min.js"></script>
	<script src="resources/js/public/jquery.session.js"></script>
	<script src="resources/layui/layui.js"></script>

	<script src="resources/js/public/public.js"></script>
	<script src="resources/js/manager/addCourse.js"></script>

	<link href="resources/css/public.css" rel="stylesheet" type="text/css"/>
	<link rel="stylesheet" href="resources/layui/css/layui.css">

	<style>
		.w1{
		}
		.w2{
		}
	</style>
</head>
<body>
<div id="header">
	<#include "/WEB-INF/page/manager/header.html">
</div>
<div class="layui-container">
	<form class="layui-form">
		<div class="layui-form-item" style="margin-top: 15px">
			<label class="layui-form-label w1">课程ID</label>
			<div class="layui-input-block w2">
				<input type="text" required lay-verify="required" class="layui-input"
					   id="id" placeholder="请输入课程ID">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label w1">课程名称</label>
			<div class="layui-input-block w2">
				<input type="text" required lay-verify="required" class="layui-input"
					   id="name" placeholder="请输入课程名称">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label w1">所属学院</label>
			<div class="layui-input-block w2">
				<input type="text" required lay-verify="required" class="layui-input"
					   id="college" placeholder="请输入课程所属学院">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label w1">所属专业</label>
			<div class="layui-input-block w2">
				<input type="text" required lay-verify="required" class="layui-input"
					   id="major" placeholder="请输入课程所属专业">
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label w1">属性</label>
			<div class="layui-input-block w2">
				<input type="radio" name="property" value="必修" title="必修" checked>
				<input type="radio" name="property" value="选修" title="选修" >
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label w1">学分</label>
			<div class="layui-input-block w2">
				<input type="text" required lay-verify="required" class="layui-input"
					   id="credit" placeholder="请输入课程学分">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label w1">教师ID</label>
			<div class="layui-input-block w2">
				<input type="text" required lay-verify="required" class="layui-input"
					   id="teacherId" placeholder="请输入教师ID">
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label w1">状态</label>
			<div class="layui-input-block w2">
				<input type="checkbox" name="state" value="true" lay-skin="switch" lay-text="开放|关闭" checked>
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label w1">限选人数</label>
			<div class="layui-input-block w2">
				<input type="text" required lay-verify="required" class="layui-input"
					   id="restrictedNum" placeholder="请输入限选人数">
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label w1">周期</label>
			<div class="layui-input-block w2">
				<input type="text" required lay-verify="required" class="layui-input"
					   id="cycle" placeholder="请输入课程周期  格式1-20">
			</div>
		</div>


		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" lay-submit type="button" id="bt_addCourse">提交</button>
				<button type="reset" type="button" class="layui-btn layui-btn-primary">重置</button>
			</div>
		</div>

	</form>
</div>
</body>
</html>